﻿// ==========================================================
// File: Universal.WebAPI.Auth.TokenResponseModel.cs
// Created: 14.12.2014
// Created By: Tim cadenbach
// 
// Copyright (C) 2014 Tim Cadenbach
// License: Apache License 2.0
// ==========================================================

using Newtonsoft.Json;

namespace Universal.WebAPI.Auth.Response
{
  /// <summary>
  ///   Response of /Token call for User Bearer Token
  /// </summary>
  public class TokenResponseModel
  {
    [JsonProperty("access_token")]
    public string AccessToken { get; set; }

    [JsonProperty("token_type")]
    public string TokenType { get; set; }

    [JsonProperty("expires_in")]
    public int ExpiresIn { get; set; }

    [JsonProperty("userName")]
    public string Username { get; set; }

    [JsonProperty(".issued")]
    public string IssuedAt { get; set; }

    [JsonProperty(".expires")]
    public string ExpiresAt { get; set; }
                    
    [JsonProperty("Roles")]
    public string Roles { get; set; }

  }
}